package book;

public class BookList {
    public Book[] books;
    public int NumberBooksExisted;

    public int getNumberBooksExisted() {
        return NumberBooksExisted;
    }

    public void setNumberBooksExisted(int numberBooksExisted) {
        NumberBooksExisted = numberBooksExisted;
    }

    public BookList() {
        this.books = new Book[3];
        this.books[0] = new Book("三国演义","1",1.0,"0");
        this.books[1] = new Book("红楼梦","1",1.0,"0");
        this.books[2] = new Book("水浒传","1",1.0,"0");

        this.NumberBooksExisted = 3;
    }
    public Book getBook(int pos) {
        return books[pos];
    }
    public void setBooks(Book book, int pos) {
        books[pos] = book;
    }
}
